﻿<UserControl x:Class="ARViewFinder.Controls.OverlayGroupPopup"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:arvf="clr-namespace:ARViewFinder.Controls"
             mc:Ignorable="d"
             FontFamily="{StaticResource PhoneFontFamilyNormal}"
             FontSize="{StaticResource PhoneFontSizeNormal}"
             Foreground="{StaticResource PhoneForegroundBrush}"
             d:DesignHeight="480" d:DesignWidth="800"
             Height="480"
             Width="800">
    
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="300" />
            <ColumnDefinition Width="250" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="380" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Canvas Background="Black" 
                Opacity=".5" 
                Grid.ColumnSpan="3" 
                Grid.RowSpan="3"
                Tap="Canvas_Tap"/>
        
        <ListBox x:Name="lbxPopupItems"
                 Grid.Column="1"
                 Grid.Row="1"
                 Background="Black"
                 Width="300"
                 Height="380"
                 HorizontalAlignment="Center"
                 ItemsSource="{Binding}"
                 BorderBrush="White"
                 BorderThickness="2"
                 >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <arvf:OverlayItem DataContext="{Binding}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
